package com.angel.mapper;

import com.angel.bean.CmsInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CmsInfoDao {
    int insert(@Param("cmsInfo") CmsInfo cmsInfo);

    int insertSelective(@Param("cmsInfo") CmsInfo cmsInfo);

    int insertList(@Param("cmsInfos") List<CmsInfo> cmsInfos);

    int update(@Param("cmsInfo") CmsInfo cmsInfo);

    List<CmsInfo> findAll(@Param("cmsInfo") CmsInfo cmsInfo);

    List<CmsInfo> findAllStart(@Param("cmsInfo") CmsInfo cmsInfo);

    List<CmsInfo> findFiveAll(@Param("cmsInfo") CmsInfo cmsInfo);
}
